package cn.liberals.feign;

import cn.liberals.domain.Store;
import cn.liberals.utils.AjaxResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(name = "store-server",fallbackFactory = StoreFallbackFactory.class)
public interface StoreFeignClient {

    @PostMapping("store/add")
    AjaxResult save(@RequestBody Store store);
}
